

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class ColorConfig{
  // 单例公开访问点
  factory ColorConfig() => _sharedInstance();

  // 静态、同步、私有访问点
  static ColorConfig _sharedInstance() {
    return _instance;
  }

  // 静态私有成员，没有初始化
  static final ColorConfig _instance = ColorConfig._();

  // 私有构造函数
  ColorConfig._() {
    // 具体初始化代码

    bodyColor = Colors.white;
    statusBackgroundColor = Colors.white;
    statusTextColor = SystemUiOverlayStyle.dark;
    splashColor = Colors.yellow;

  }

  Color? bodyColor;
  Color? statusBackgroundColor;
  SystemUiOverlayStyle? statusTextColor;
  Color? splashColor;

}

extension ColorConfigExt on ColorConfig{

}